package sol.cc;

/**
 * Created by lkk on 2016/8/17.
 */
public class Issue1_8 {
    public static boolean checkReverseEqual(String s1, String s2) {
        return ((s2 + s2).indexOf(s1)) != -1;
    }

    public static void main(String[] args) {
        String str1 = "waterbottle";
        String str2 = "erbottlewat";
        System.out.println(checkReverseEqual(str1,str2));
    }
}
